/* 蜀绣历史页面样式 */

/* 页面整体样式 */
.history-page {
    padding-bottom: 60px;
}

/* 历史部分通用样式 */
.history-section {
    padding: 80px 0;
}

.history-section:nth-child(even) {
    background-color: #f9f9f9;
}

.history-section:nth-child(odd) {
    background-color: #fff;
}

/* 起源部分样式 */
.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.history-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
}

.history-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

/* 时间线样式 */
.timeline-horizontal {
    position: relative;
    margin: 60px 0 40px;
    padding-bottom: 20px;
}

.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 25%;
    float: left;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 1;
}

.timeline-point {
    width: 20px;
    height: 20px;
    background-color: #c83c23;
    border-radius: 50%;
    margin: 40px auto 20px;
    position: relative;
    z-index: 3;
}

.timeline-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.timeline-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.timeline-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.timeline-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: auto;
}

.history-detail {
    clear: both;
    padding-top: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.history-detail h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.history-detail p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

/* 现代传承部分样式 */
.modern-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.modern-text {
    padding-right: 20px;
}

.modern-text p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.7;
}

.modern-text h3 {
    margin-bottom: 20px;
    color: #333;
}

.protection-list {
    list-style: none;
    padding: 0;
}

.protection-list li {
    display: flex;
    margin-bottom: 25px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.protection-list li:hover {
    transform: translateY(-5px);
}

.protection-list .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 60, 35, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.protection-list .icon i {
    color: #c83c23;
    font-size: 24px;
}

.protection-info h4 {
    margin-bottom: 10px;
    color: #333;
}

.protection-info p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

.modern-image {
    position: relative;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.challenges-opportunities {
    margin-top: 60px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.challenges-opportunities h3 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.challenge-item, .opportunity-item {
    padding: 20px;
    border-radius: 8px;
}

.challenge-item {
    background-color: rgba(220, 53, 69, 0.05);
    border-left: 4px solid #dc3545;
}

.opportunity-item {
    background-color: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
}

.challenge-item h4, .opportunity-item h4 {
    margin-bottom: 15px;
    color: #333;
}

.challenge-item ul, .opportunity-item ul {
    padding-left: 20px;
    color: #666;
}

.challenge-item li, .opportunity-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}


/* 添加新的图标样式 */
.icon {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 60, 35, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon i {
    color: #c83c23;
    font-size: 24px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .history-content,
    .modern-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        width: 50%;
        margin-bottom: 30px;
    }
    
    .timeline-horizontal::before {
        top: 50px;
        height: 80%;
        width: 2px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        float: none;
        margin-bottom: 40px;
    }
    
    .timeline-horizontal::before {
        display: none;
    }
    
    .timeline-point {
        margin: 0 0 20px 0;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .protection-list li {
        flex-direction: column;
    }
    
    .protection-list .icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}